package com.atguigu.yygh.cmn.client;

import com.atguigu.yygh.cmn.fallback.DictFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-cmn" , path = "/admin/dict", fallbackFactory = DictFeignFallback.class)
public interface DictFeignClient {
    @GetMapping("/name/{parentDictCode}/{value}")
    String getName(@PathVariable("parentDictCode") String parentDictCode, @PathVariable("value") Long value);


    @GetMapping("/name/{value}")
    String getName(@PathVariable("value") Long value);

}
